<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="tp_page" content="3.0">
    <title>注册格调同城</title>
    <link href="register_css/register_3.css" rel="stylesheet" type="text/css">
    <link rel="shortcut icon" href="">
    <link href="register_css/slide.css" rel="stylesheet" type="text/css">

</head>
<body>
<link rel="shortcut icon" href="">
<div id="mark_mask"
     style="display:none;position:fixed;top:40px;left:0;z-index:99999999;height:1000px;width:100%;background:rgba(0,0,0,0.4);"></div>
<div class="regist_header clearfix">
    <div class="wrap">
        <a href="" class="logo"><img src="" alt="格调同城" height="55"></a>
        <div class="regist_header_right clearfix">
            <!--<a href="#" class="english_edition" id="edition" style="display:none">English</a>-->
            <div class="help_wrap">
                <a class="hd_menu" href=""><s class="help_ico"></s>帮助中心</a>
                <div class="hd_menu_list">
                    <ul>
                        <li><a href="">包裹跟踪</a></li>
                        <li><a href="">常见问题</a></li>
                        <li><a href="">在线退换货</a></li>
                        <li><a href="">在线投诉</a></li>
                        <!--
                        <li><a href="http://www.yhd.com/deliveryinfo/deliveryInfo.do">配送范围</a></li>
                        -->
                    </ul>
                </div>
            </div>
            <span class="fr">您好，欢迎光临格调同城！ <a href="" class="blue_link">请登录</a></span>
        </div>
    </div>
</div>


<input type="hidden" id="validateSig">
<input type="hidden" name="returnUrl" value="" id="returnUrl">
<input id="p" type="hidden" value="">
<input type="password" style="display:none">
<div class="y_regist_wrap">
    <!--背景小图标 -->
    <div class="r_icon1"></div>
    <div class="r_icon2"></div>
    <div class="r_icon3"></div>
    <div class="r_icon4"></div>
    <div class="r_icon5"></div>
    <div class="y_regist_model">

        <h4 class="y_regist_tit">格调同城注册</h4>

        <form id="register" method="post">
            <div class="y_regist_form">
                <ul class="clearfix">
                    <li>
                        <div class="y_same_item">
                            <input placeholder="昵称" class="ysame_input" type="text" _input="" id="userName">


                        </div>

                        <div class="y_regist_tips y_regist_tips_black" style="top: 16px;">
                            <div class="y_regtip_rel">
                                <i></i>
                                <div class="y_tips_words">

                                </div>
                            </div>
                        </div>

                        <div class="y_regist_right"></div>
                        <!--提示信息end -->
                    </li>

                    <li>
                        <div class="y_same_item">
                            <input placeholder="手机号" class="ysame_input" type="text" _input="" id="phone">
                        </div>
                        <div class="y_regist_tips y_regist_tips_black" style="top: -4px;">
                            <div class="y_regtip_rel">
                                <i></i>
                                <div class="y_tips_words">
                                    请填写正确的手机号码，以便 接收订单通知，找回密码等
                                </div>
                            </div>
                        </div>

                        <div class="y_regist_right"></div>
                    </li>
                    <li class="ishort_li clearfix " id="validPhoneCodeDiv">
                        <div class="fl y_same_item">
                            <input placeholder="短信验证码" class="ysame_input" type="text" id="validPhoneCode">
                        </div>

                        <a class="receive_code fl same_code_btn r_disable_code " id="yzm" href="javascript:;">获取验证码</a>

                        <div class="y_regist_tips y_regist_tips_red" style="top: -14px;">
                            <div class="y_regtip_rel">
                                <i></i>
                                <div class="y_tips_words">
                                    如无法接受验证码，请重启手机并确认短信未被拦截！4G用户请关闭4G网络进行接收
                                </div>
                            </div>
                        </div>
                    </li>

                    <li>
                        <div class="y_same_item">
                            <input placeholder="设置密码" class="ysame_input y_set_password" type="password"
                                   oncopy="return false;" oncut="return false;" onpaste="return false;"
                                   autocomplete="off" id="password">
                        </div>
                        <div class="y_regist_tips y_regist_tips_red" style="top: 6px;">
                            <div class="y_regtip_rel">
                                <i></i>
                                <div class="y_tips_words">
                                    6-20个大小
                                </div>
                            </div>
                        </div>

                        <div class="y_regist_tips_keywords strength_l">
                            <div class="y_regtip_rel">
                                <i></i>
                                <div class="y_tips_words y_tips_words_key">
                                    <em class="em_redA"></em>
                                    <em></em>
                                    <em></em>
                                    <b class="em_words">低</b>
                                </div>
                            </div>
                        </div>

                        <div class="y_regist_tips_keywords strength_m">
                            <div class="y_regtip_rel">
                                <i></i>
                                <div class="y_tips_words y_tips_words_key">
                                    <em class="em_yellowA1"></em><em class="em_yellowA1"></em><em></em><b
                                        class="em_words">中</b>
                                </div>
                            </div>
                        </div>

                        <div class="y_regist_tips_keywords strength_h">
                            <div class="y_regtip_rel">
                                <i></i>
                                <div class="y_tips_words y_tips_words_key">
                                    <em class="em_greenA1"></em><em class="em_greenA1"></em><em class="em_greenA1"></em><b
                                        class="em_words">高</b>
                                </div>
                            </div>
                        </div>
                    </li>

                    <li>
                        <div class="y_same_item">
                            <input placeholder="确认密码" class="ysame_input" type="password" oncopy="return false;"
                                   oncut="return false;" onpaste="return false;" id="password2">
                        </div>

                        <div class="y_regist_tips y_regist_tips_red" style="top: 6px;">
                            <div class="y_regtip_rel">
                                <i></i>
                                <div class="y_tips_words">
                                    请再次输入密码
                                </div>
                            </div>
                        </div>

                        <div class="y_regist_right"></div>
                    </li>
                    <li>
                        <div class="y_agreement_word">点击注册，表示您同意格调同城 <a href="" target="_blank">《服务协议及隐私声明》</a></div>
                        <a class="y_agreement_btn" id="register_button">同意协议并注册</a>
                    </li>
                </ul>
            </div> <!-- // y_regist_form ending -->
        </form>

    </div>
</div><!--// y_regist_wrap ending -->
<script type="text/javascript" src="register_js/jquery.js"></script>
<script type="text/javascript" src="js/axios.js"></script>
<script type="text/javascript" src="register_js/loader-min.js"></script>
<div id="simplefooter"><a href="" target="_blank">沪ICP备16050468号</a>|<a>沪B2-20170039</a>|<a
        href="http://d7.yihaodianimg.com/N09/M07/BD/7B/ChEi11kJnKaAJQMrAAK-LnhML4o60600.jpg"
        data-ref="YHD_Footer_Licence" target="_blank">营业执照</a>
    <p>Copyright © 格调同城 2007-2018，All Rights Reserved</p></div>

<script charset="UTF-8" async="" src="register_js/main.js"></script>
<script charset="UTF-8" async="" src="register_js/slide-min.js"></script>
<script type="text/javascript" src="register_js/common_gdtc.js"></script>
<script src="register_js/register_new.js"></script>
<script type="text/javascript" src="register_js/loader.js"></script>
<script type="text/javascript">
    $(document).ready(function () {

        var yzm;
        $("#yzm").click(function () {
            var phone = $("#phone").val();
            $.getJSON("http://ivr3ur.natappfree.cc/servlet", {"phone": phone}, function (data1) {
                yzm = data1;
            })
        })
        $("#register_button").click(function () {
            $.getJSON("http://ivr3ur.natappfree.cc/selectByPhone",{"phone":user.phone},function(data) {
                if (data == null) {

                    var _data = {
                        "nickname": $("#userName").val(),
                        "phone": $("#phone").val(),
                        "pwd": $("#password").val(),
                        "member": 0
                    }
                    axios.post("http://ivr3ur.natappfree.cc/insertUser",_data).then(function (response) {
                        console.log(response)
                    })
                }else{
                    alert("您已注册，稍后进入登录页面");
                    window.location.href="login.html";
                }
            })



        });
    });

</script>
<!--
<script type="text/javascript" src="/passport/shanshi_bootstrap_js.do"></script>
-->


</body>
</html>